import {
    http4
} from "@/service/axios";

//路段列表
export function getroadSection(data) {
    return http4.post({
        url: "/road/section/list/page",
        data,
    });
}

// 新增路段
export function getAddRoadSection(data) {
    return http4.post({
        url: "/road/section/add",
        data,
    });
}

// 编辑路段
export function getEditRoadSection(data) {
    return http4.post({
        url: "/road/section/edit",
        data,
    });
}

// 删除路段
export function getDeleteRoadSection(data) {
    return http4.post({
        url: `/road/section/remove/${data}`,
        data,
    });
}

// 路段信息导入模板下载接口
export function getExportSection(data) {
    return http4.get({
      url: `/road/section/import/template/download`,
      data,
      responseType: "blob",
    });
  }